package com.boco.modules.fdoc.api;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.boco.common.json.BaseJsonVo;
import com.wordnik.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(value = "/hospitalComment", produces = "text/json;charset=UTF-8")
public class HospitalCommentApi {

	/**
	 * 评级 1、2、3、4、5 星
	 * 
	 * @param hospId
	 * @param stars
	 * @return
	 */
	@RequestMapping(value = "/grade", method = RequestMethod.POST)
	@ApiOperation(value = "评级 1、2、3、4、5 星", notes = "{'stars':'stars'}", response = BaseJsonVo.class)
	public String grade(String hospId, String stars) {
		return "";
	}

	/**
	 * 添加评论
	 * 
	 * @param hospId
	 * @return
	 */
	@RequestMapping(value = "/add", method = RequestMethod.POST)
	@ApiOperation(value = "添加评论", notes = "{'commentBody':'评论内容'}", response = BaseJsonVo.class)
	public String add(@RequestBody String commentBody) {
		return "";
	}

	/**
	 * 删除评论
	 * 
	 * @param hospId
	 * @return
	 */
	@RequestMapping(value = "/delete", method = RequestMethod.POST)
	@ApiOperation(value = "删除评论", notes = "{'id':'评论ID'}", response = BaseJsonVo.class)
	public String delete(@RequestParam String id) {
		return "";
	}

	/**
	 * 查询医院所有评论
	 * 
	 * @param hospId
	 * @return
	 */
	@RequestMapping(value = "/get", method = RequestMethod.POST)
	@ApiOperation(value = "查询医院所有评论", notes = "{'hospId':'医院ID'}", response = BaseJsonVo.class)
	public String get(@RequestParam String hospId) {
		return "";
	}

	/**
	 * 回复评论
	 * 
	 * @param hospId
	 * @return
	 */
	@RequestMapping(value = "/reply", method = RequestMethod.POST)
	@ApiOperation(value = "回复评论", notes = "{'commentBody':'回复内容'}", response = BaseJsonVo.class)
	public String reply(@RequestBody String commentBody) {
		return "";
	}
}
